package com.example.designmode.decoration;

//继承父类拓展(装饰)
public class CapHanChineseClothing extends Finery{

    //使用父类构造
    public CapHanChineseClothing(Component component) {
        super(component);
    }

    //子类拓展方法
    private void cap(){
        System.out.println("穿戴加绒九尾狐斗篷");
    }

    //子类装饰父类
    @Override
    public void show() {
        super.show();
        cap();
    }
}
